package com.resource.project.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.resource.project.entity.abstracts.AbstractEntity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 领料/入库单表
 * </p>
 *
 * @author resource
 * @since 2020-12-08
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="TResourceManage对象", description="领料/入库单表")
public class TResourceManage extends AbstractEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "物料ID")
    @TableField("resourceId")
    private Long resourceId;

    @ApiModelProperty(value = "领料/入库")
    private Integer type;

    @ApiModelProperty(value = "0:申请，1:缺货/驳回，2:完成，3:废弃")
    private Integer status;

    @ApiModelProperty(value = "领料/入库数量")
    private Integer amount;

    @ApiModelProperty(value = "备注详情")
    private String remark;

    @TableField(exist = false)
    private TResource resource;


}
